class Book {
  final String id;
  final String title;
  final String imageUrl;
  final String author;
  final String description;
  final int viewCount;
  final List<String> tags;

  Book({
    required this.id,
    required this.title,
    required this.imageUrl,
    required this.author,
    required this.description,
    required this.viewCount,
    required this.tags,
  });
}

// 模拟数据
final List<Book> mockBooks = [
  Book(
    id: '1',
    title: '黄帝内经',
    imageUrl: 'assets/黄帝内经.jpg',
    author: '佚名',
    description: '中医理论的奠基之作',
    viewCount: 30000,
    tags: ['经典', '理论'],
  ),
  Book(
    id: '2',
    title: '伤寒论',
    imageUrl: 'assets/伤寒论.jpg',
    author: '张仲景',
    description: '中医临床的经典著作',
    viewCount: 25000,
    tags: ['经典', '临床'],
  ),
  Book(
    id: '3',
    title: '神农本草经',
    imageUrl: 'assets/神农本草经.jpg',
    author: '佚名',
    description: '中医药学的开山之作',
    viewCount: 20000,
    tags: ['经典', '本草'],
  ),
  Book(
    id: '4',
    title: '难经',
    imageUrl: 'assets/难经正义.jpg',
    author: '佚名',
    description: '中医理论著作',
    viewCount: 15000,
    tags: ['经典', '理论'],
  ),
  Book(
    id: '5',
    title: '金匮要略',
    imageUrl: 'assets/金匮要略.jpg',
    author: '张仲景',
    description: '中医临床重要著作',
    viewCount: 18000,
    tags: ['经典', '临床'],
  ),
];
